<?php echo $this->tinyMce;?>
<h1 style="margin-bottom:10px;"><?php echo $title;?></h1>

<?php
echo form_open('cadminpage/create');
echo "<div class='div-manipulate'>";
echo "<p><label for='pname'>Name</label><br/>";
$data = array('name'=>'name','id'=>'pname','size'=>25);
echo form_input($data) ."</p>";

echo "<p><label for='short'>Keyword</label><br/>";
$data = array('name'=>'keyword','id'=>'short','size'=>40);
echo form_input($data) ."</p>";

echo "<p><label for='desc'>Description</label><br/>";
/*$data = array('name'=>'description','id'=>'desc','rows'=>10,'cols'=>50);
echo form_textarea($data) ."</p>";*/
$data = array('name'=>'description','id'=>'desc','size'=>40);
echo form_input($data) ."</p>";

echo "<p><label for='fpath'>Path/FURL</label><br/>";
$data = array('name'=>'path','id'=>'fpath','size'=>50);
echo form_input($data) ."</p>";

echo "<p><label for='parent_id'>Parent</label><br/>";
/*$option1 = array('0'=>'...Select Parent...');
$frontPages = $this->MPage->getAllPages();
if ( count($frontPages) )
{
	foreach ( $frontPages as $key => $list )
	{
		$key += 1;
		$option2[$key] = $list['name'];
	}
}
$options = $option1 + $option2;*/
echo form_dropdown('parent_id',$listmenu) ."</p>";

echo "<p><label for='activate'>External Contents</label><br/>";
$options = array('0' => 'Please select external resourses', 'news' => 'News and Events','course'=>'Resources','lecturer'=>'Lecturers','student_result'=>'Student Result','student_schedule'=>'Student Schedule');
echo form_dropdown('external_resource',$options,array(), 'style="width:240px;"') ."</p>";

echo "<p><label for='long'>Content</label><br/>";
$data = array('name'=>'content','id'=>'long','rows'=>10, 'cols'=>'50');
echo form_textarea($data) ."</p>";


echo "<p><label for='activate'>Activate</label><br/>";
$options = array('1' => 'Active', '0' => 'Inactive');
echo form_dropdown('activate',$options,array(), 'style="width:120px;"') ."</p>";
echo "</div>";

echo form_submit(array('class'=>'btn','name'=>'submit'),'Create Page');

echo "</div>";
echo form_close();


?>